package smcms.service.sso.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import smcms.service.sso.entity.StaffInfoExport;
import smcms.service.sso.entity.StaffInfoReq;
import smcms.service.sso.entity.StaffInfoResp;

import java.util.List;

@Mapper
public interface StaffMapper {
    void addCloudStaff(StaffInfoReq req);

    String queryCloudName(StaffInfoReq req);

    void addUserRoleRel(StaffInfoReq req);

    void updateUserRoleRel(StaffInfoReq req);

    Integer queryRoleIdByRoleName(String roleName);

    List<StaffInfoResp> queryCloudStaff(StaffInfoReq req);

    List<StaffInfoExport> exportCloudStaff(StaffInfoReq req);

    void deleteStaff(@Param("accountList") List<String> accountList);

    void updateStaff(StaffInfoReq req);
}
